package com.fenxiangle.yueding.entity;

public enum OrderBtnType {
    QX("取消", 0),
    YWC("再次邀请", 1),
    DFK("付款", 2),
    JYZ("取消交易", 3),
    DQR("确认订单", 4),
    DPJ("评分", 5),
    SSZ("提交资料 ", 6);
    // 成员变量
    private String name;
    private int index;

    // 构造方法
    private OrderBtnType(String name, int index) {
        this.name = name;
        this.index = index;
    }

    // 普通方法
    public static String getName(int index) {
        for (OrderBtnType c : OrderBtnType.values()) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }

    // get set 方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

}